package com.xcm.model.vo;

/**
 * 权限树VO
 *
 * @author 林强
 * @date 2018-04-12 11:15
 */
public class SysAuthorityTreeVo {
    /**
     * 权限id
     */
    private Integer authorityId;
    /**
     * 父权限id
     */
    private Integer parentId;
    /**
     * 权限名称
     */
    private String authorityName;
    /**
     * 是否默认选中(true为选中)
     */
    private boolean checked;

    public SysAuthorityTreeVo() {
    }

    public SysAuthorityTreeVo(Integer authorityId, Integer parentId, String authorityName, boolean checked) {
        this.authorityId = authorityId;
        this.parentId = parentId;
        this.authorityName = authorityName;
        this.checked = checked;
    }

    public Integer getAuthorityId() {
        return authorityId;
    }

    public void setAuthorityId(Integer authorityId) {
        this.authorityId = authorityId;
    }

    public Integer getParentId() {
        return parentId;
    }

    public void setParentId(Integer parentId) {
        this.parentId = parentId;
    }

    public String getAuthorityName() {
        return authorityName;
    }

    public void setAuthorityName(String authorityName) {
        this.authorityName = authorityName;
    }

    public boolean isChecked() {
        return checked;
    }

    public void setChecked(boolean checked) {
        this.checked = checked;
    }

    @Override
    public String toString() {
        return "SysAuthorityTreeVo{" +
                "authorityId=" + authorityId +
                ", parentId=" + parentId +
                ", authorityName='" + authorityName + '\'' +
                ", checked=" + checked +
                '}';
    }
}
